package com.caiyigo.struts.serviceImpl;

import java.util.List;

import com.caiyigo.struts.dao.IDepartmentDao;
import com.caiyigo.struts.daoImpl.DepartmentDaoImpl;
import com.caiyigo.struts.model.Department;
import com.caiyigo.struts.service.IDepartmentService;

public class DepartmentServiceImpl implements IDepartmentService {
	private IDepartmentDao dao;

	public DepartmentServiceImpl() {
		this.dao = new DepartmentDaoImpl();
	}

	public List<Department> getAllDepartments() {
		return dao.getAllDepartments();
	}
}